package com.example.jwtauthdemo.service;



import com.example.jwtauthdemo.dao.Student;
import com.example.jwtauthdemo.vo.StudentApplicationVO;

import java.util.List;

public interface StudentManageService {

    //查看学生信息
    List<Student> selectStudentInfo(String classCode, String teacherId);

//  移除学生
    int removeStudent(Integer classCode, Integer studentId, Integer teacherId);
    
    //同意学生加入班级
    int agreeStudent(Integer classCode, Integer studentId, Integer teacherId);
    
    //查询待同意的学生申请并关联用户信息
    List<StudentApplicationVO> getPendingStudentApplications(Integer teacherId);
    
    //更新学生申请班级的状态（同意=1，拒绝=2）
    int updateStudentApplicationStatus(Integer userId, Integer status);
    
    //教师申请加入班级
    int teacherApplyForClass(Integer teacherId, Integer classCode, Integer status);
    
    //更新用户的班级ID
    int updateUserClassId(Integer userId, Integer classCode);

    //查询已同意或拒绝的学生申请并关联用户信息
    List<StudentApplicationVO> getApprovedApplications(Integer teacherId);

}

